package com.ecommerce.dal.common;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.ecommerce.dal.service.impl.CustomerManagerService;





public class TestDB {
	public static void main( String[] args )
    {
    	ApplicationContext appContext = 
    	  new ClassPathXmlApplicationContext("spring/config/BeanLocations.xml");
 
//    	UserManagerService userManagerService = (UserManagerService)appContext.getBean("userManagerService");
    	CustomerManagerService customerManagerService = (CustomerManagerService) appContext.getBean("customerManagerService");    	
//    	CommunicationManagerService communicationManagerService = (CommunicationManagerService) appContext.getBean("communicationManagerService");
//    	CompanyManagerService companyManagerService = (CompanyManagerService) appContext.getBean("companyManagerService");
//    	RankManagerService rankManagerService = (RankManagerService) appContext.getBean("rankManagerService");
//    	ClientManagerService clientManagerService = (ClientManagerService) appContext.getBean("clientManagerService");
//    	PhotoManagerService photoManagerService = (PhotoManagerService) appContext.getBean("photoManagerService");
//    	AdminManagerService adminManagerService = (AdminManagerService) appContext.getBean("adminManagerService");
//    	MembershipCardManagerService membershipCardManagerService = (MembershipCardManagerService) appContext.getBean("membershipCardManagerService");
//    	CategoryManagerService categoryManagerService = (CategoryManagerService) appContext.getBean("categoryManagerService");
//    	ItemManagerService itemManagerService = (ItemManagerService) appContext.getBean("itemManagerService");
//    	CommunicationManagementService communicationManagementService = (CommunicationManagementService) appContext.getBean("communicationManagementService"); 
//    	PhotoManagementService photoManagementService = (PhotoManagementService) appContext.getBean("photoManagementService");
//    	ItemManagementService itemManagementService = (ItemManagementService) appContext.getBean("itemManagementService");
   
    	
//    	new TestItemManagement(itemManagementService, itemManagerService);
//    	new TestCustomerItem(customerManagerService, itemManagerService);
//    	new TestPhotoManagement(photoManagementService, itemManagerService, categoryManagerService, companyManagerService , photoManagerService);
//    	new TestUserCommunication(communicationManagementService, userManagerService, communicationManagerService);
//    	new TestCommunicationManagement(communicationManagementService, companyManagerService, communicationManagerService );
//    	new TestItem(itemManagerService, clientManagerService, categoryManagerService);
//    	new TestCategory(categoryManagerService);
//    	new TestMembershipCard(membershipCardManagerService);
//    	new TestAdmin(adminManagerService);
//    	new TestPhoto(photoManagerService);
    	new TestInheritedCustomer(customerManagerService);
//    	new TestInheritedClient(clientManagerService , rankManagerService , companyManagerService);
//    	new TestUser(userManagerService);
//    	new TestCompany(companyManagerService , itemManagerService);
//    	new TestCommunication(communicationManagerService);
//    	new TestRank(rankManagerService);
//    	//User user = userManagerService.retrieveUser(3L);
//    	
//    	
//    	new TestInheritedClient(clientManagerService, rankManagerService, companyManagerService);
//    	//new TestUser(userManagerService);
//    	
////    	new TestInheritedCustomer(customerManagerService);
    	
    }
	


}
